<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script>
function printme()
{
	document.body.innerHTML=document.getElementById('needPrint').innerHTML;
	window.print();
}

function printme1()
{
	document.body.innerHTML=document.getElementById('needPrint1').innerHTML;
	window.print();
}
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">二维码打印</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span></span></div>
	
    <div align="center" >
	<div id="Printlable">小图</div>
	<div id="needPrint">
		<table width="280" border="1" class="textarea">
		  <tr>
			<td><img src="upload/canvas.png" /></td>
		  </tr>
		   <tr>
			<td>
			<table class="table">
			  <tr>
				<td>供应商&nbsp;</td> <td>四创电子股份有限公司</td>
			  
			  </tr>
			  <tr>	  
				 <td >合同号&nbsp;</td> <td>20160408001</td>
			  </tr>
			   <tr>	  
				  <td>物料名称&nbsp;</td> <td>内存</td>
			  </tr>
			   <tr>	  
				  <td>物料编码&nbsp;</td> <td>10002</td>
			  </tr>
			   <tr>	  
				  <td>物料型号&nbsp;</td> <td>xhtml100</td>
			  </tr>
				 <tr>	  
				  <td>数量&nbsp;</td> <td>1000</td>
			  </tr>
			   <tr>	  
				  <td>生产批次号&nbsp;</td> <td>20160518</td>
			  </tr>
			   
				
			</table>
			</td>
		 </tr>
		  <tr>
			<td>
					<table class="table">
			  <tr>
				<td>采购员&nbsp;</td>
				<td >合格证&nbsp;</td>
				<td>检验报告&nbsp;</td>
				<td>存储条件&nbsp;</td>
				<td>备注&nbsp;</td>
				
			  </tr>
			  <tr>
			   <td>李明</td>
				<td>无</td>
				<td>有</td>
				<td>干燥</td>
				<td></td>
			   
			  </tr>
			</table>
			</td>
		 </tr>
		  
		 
        </table>
		</div>
		
		<div id="Printlable1">大图</div>
		<div id="needPrint1">
		<table width="420" border="1" class="textarea">
		 <tr>
			<td><img src="upload/canvas1.png" width="400" height="400"/></td>
		 </tr>
		  <tr>
			<td>&nbsp;</td>
		 </tr>
		
		 
		  <tr>
			<td>
			<table class="table">
      <tr>
	    <td>供应商&nbsp;</td> <td>四创电子股份有限公司</td>
      
      </tr>
      <tr>	  
         <td >合同号&nbsp;</td> <td>20160408001</td>
	  </tr>
	   <tr>	  
          <td>物料名称&nbsp;</td> <td>内存</td>
	  </tr>
	   <tr>	  
          <td>物料编码&nbsp;</td> <td>10002</td>
	  </tr>
	   <tr>	  
          <td>物料型号&nbsp;</td> <td>xhtml100</td>
	  </tr>
         <tr>	  
          <td>数量&nbsp;</td> <td>1000</td>
	  </tr>
	   <tr>	  
          <td>生产批次号&nbsp;</td> <td>20160518</td>
	  </tr>
       
		
    </table>
			</td>
		 </tr>
		  <tr>
			<td>
			<table class="table">
      <tr>
	    <td>采购员&nbsp;</td>
        <td >合格证&nbsp;</td>
        <td>检验报告&nbsp;</td>
        <td>存储条件&nbsp;</td>
        <td>备注&nbsp;</td>
        
      </tr>
      <tr>
	   <td>李明</td>
        <td>无</td>
        <td>有</td>
        <td>干燥</td>
        <td></td>
       
      </tr>
    </table>
			</td>
		 </tr>
		 </table>
		 
		</div>
<div class="tipbtn">
		
        <input name="" type="button"  class="sure" value="打印小二维码" onclick="javascrīpt:printme();"/>&nbsp;
		<input name="" type="button"  class="sure" value="打印大二维码" onclick="javascrīpt:printme1();"/>&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>		
     </div>
	
    
    </div>


</body>

</html>
